package com.common.method;

import com.android.ocean.util.common.StringUtil;
/**
 * 
 * @ClassName:LocData
 * @Description:TODO位置数据
 * @author zhuw
 * @date 2013-9-5 上午11:13:42
 */
public class LocData {
	public static String DEFAULT_P_X="104.06";//lng
	public static String DEFAULT_P_Y="30.86"; //lat
	public static String DEFAULT_P_CITY="成都";
	
	//默认的地图点
//	public static  GeoPoint DEFAULT_GEOPOINT = new GeoPoint((int)(30.63355483*1e6),(int)(104.06653404*1e6));
	
	/**
	 * 启动地图定位后，会默认写入这个3个变量,
	 */
	public static String LOC_X=null;
	public static String LOC_Y=null;
	public static String LOC_CITY=null;
	
	
	public static String getX(){
		
		if(StringUtil.isNull(LOC_X)){
			
			return DEFAULT_P_X;
		}else{
			return LOC_X;
		}
		
	}
	public static String getY(){
		
		if(StringUtil.isNull(LOC_Y)){
			
			return DEFAULT_P_Y;
		}else{
			return LOC_Y;
		}
		
	}
	public static String getCity(){
		
		if(StringUtil.isNull(LOC_CITY)){
			
			return DEFAULT_P_CITY;
		}else{
			return LOC_CITY;
		}
		
	}
	
	
	
}
